#ifndef CUSTOMBUTTON_H
#define CUSTOMBUTTON_H

#include <QPushButton>
#include <QPaintEvent>
#include <QMouseEvent>
class CustomButton : public QPushButton
{
public:
    CustomButton(QWidget * p=nullptr);
    void mousePressEvent(QMouseEvent* e);
    void mouseReleaseEvent(QMouseEvent* e);
    void paintEvent(QPaintEvent * e);

private:
    QColor co = Qt::blue;

};

#endif // CUSTOMBUTTON_H
